package com.woniu108.order.model.model;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 服务订单
 * </p>
 *
 * @author yanxi
 * @since 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderService implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 服务订单编号
     */
    @TableId(value = "order_service_num", type = IdType.INPUT)
    private String orderServiceNum;

    /**
     * 用户编号
     */
    private String userId;
    /**
     * 车辆id
     */
    private Integer carId;

    /**
     * 商店id
     */
    private Integer storeId;

    /**
     * 订单状态 0待支付1已支付2服务进行中3服务完成4订单取消5删除
     */
    private Integer orderServiceState;

    /**
     * 下单时间
     */
    private LocalDateTime orderTime;

    /**
     * 订单服务详情编号
     */
    private String orderSerInfoNum;

    /**
     * 耗材明细
     */
    private String productsDetails;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;

    /**
     * 订单总价
     */
    private BigDecimal orderPrice;

    /**
     * 订单二维码
     */
    private String orderQrcode;

    /**
     * 支付订单所得的积分
     */
    private BigDecimal orderScore;

    /**
     * 评分状态，0未评价1已评价
     */
    private Integer reviewState;
}
